﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace ISay_TelaLogin
{
    public partial class FormCadastro : Form
    {
        public FormCadastro()
        {
            InitializeComponent();
        }

        private void FormCadastro_Shown(object sender, EventArgs e)
        {
            bindingSource.AddNew();
            lbl_data.Text += DateTime.Now.ToShortDateString();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            lbl_data.Tag = DateTime.Now;
            bindingSource.EndEdit();
            usuarioTableAdapter.Update(iSayDataSet.Usuario);
            this.Close();
        }
    }
}
